package cn.weixin.common.util;

import cn.weixin.common.msg.req.InputMessage;
import cn.weixin.common.msg.resp.OutputMessage;

/**
 * @author Han
 */
public class MessageUtil {
	public static void setDefault(InputMessage inputMessage,OutputMessage outputMessage){
		if(outputMessage != null && inputMessage != null){
			outputMessage.setCreateTime(System.currentTimeMillis());
			outputMessage.setFromUserName(inputMessage.getToUserName());
			outputMessage.setToUserName(inputMessage.getFromUserName());
		}
	}
}
